import request from '../utils/request';

// 用户登录接口
export const loginApi=({mobile,code})=>{
    return request({
        url:'/v1_0/authorizations',
        method: 'POST',
        data: {mobile,code}
    })
}

// 1. 封装API
export const getUserInfoAPI = () => {
    return request({
      url: '/v1_0/user/profile',
    });
  };